<!DOCTYPE html>
<meta name="viewport" content="width=800">
<script src="resources/autosizingTest.js"></script>
<style>
  html {
    font-size: 16px;
  }
  body {
    width: 800px;
    margin: 0;
    overflow-y: hidden;
  }
  #inlineToBlock {
    display: inline;
    width: 200px;
    line-height: 30px;
    font-size: 30px;
  }
</style>
<span id="inlineToBlock">
  <div>
    This test verifies that display changes properly invalidate the text autosizer. This test passes if this text is not overlapping with itself. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
  </div>
</span>
<script>
  window.onload = function() {
    var forceLayout1 = document.body.offsetTop;
    document.getElementById('inlineToBlock').style.display = "block";
    var forceLayout2 = document.body.offsetTop;
    if (window.testRunner)
      testRunner.notifyDone();
  }
</script>